/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-06-20 10:14:45
 * @LastEditTime: 2024-06-20 10:24:21
 * @FilePath: \project\src\router\index.ts
 */
import {createRouter, createWebHashHistory} from 'vue-router'
import {constantaRoute} from './routes'

let router = createRouter({
  history: createWebHashHistory(),// hash模式
  routes: constantaRoute,
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    }
  }
})

export default router